package com.qualityevaluationclouduser.repository;

import com.qualityevaluationclouduser.entity.RoleFunction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: qualityEvaluationCloudProject
 * @class: RoleFunctionRepository
 * @description: 角色菜单关系仓库
 * @author:
 * @create:
 **/
@Repository
public interface RoleFunctionRepository extends JpaRepository<RoleFunction,Long> {
    List<RoleFunction> findRoleFunctionsByRoleid(Long roleid);
    void deleteAllByRoleid(Long roleId);
    void deleteAllByMenuid(Long menuId);
}
